package com.xyht.medicine_management_system.modules.order.service;

import com.xyht.medicine_management_system.common.commonReturn.ResponseResult;
import com.xyht.medicine_management_system.modules.order.entity.MmsOrderRefund;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xyht.medicine_management_system.modules.order.entity.req.MmsOrderRefundReq;

/**
 * <p>
 * 订单退款表 服务类
 * </p>
 *
 * @author XYHT
 * @since 2023-12-14
 */
public interface MmsOrderRefundService extends IService<MmsOrderRefund> {

    ResponseResult submitRefund(MmsOrderRefundReq refundReq, String userId);

    ResponseResult agreeRefund(MmsOrderRefundReq refundReq, String userId);

    ResponseResult refuseRefund(MmsOrderRefundReq refundReq, String userId);

    ResponseResult getAllRefund(Integer pageNum, Integer pageSize, String searchStr, Integer status);

    ResponseResult getRefundDetail(String refundId);
}
